package com.swh.servic;

import com.swh.dao.DeptDao;
import com.swh.entity.Dept;

import java.util.List;
import java.util.Map;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/11/23 16:58
 * @Version: 1.0
 */
public class DeptService  {
    private DeptDao deptDao = new DeptDao();

    public List<Map<String, Object>> findAll() {
        return deptDao.findAll();
    }


    public Dept findById(Long deptId) {

        return deptDao.findById(deptId);
    }

    public List<Dept> findDeptAll() {
        return deptDao.findDeptAll();
    }
}
